home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / ewebedit / preview.asp < prev    next >
Encoding:
Text File  |  1999-05-26  |  1.6 KB  |  44 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html>
  3.     <head>
  4.         <title>EKtron WYSIWYG Editor</title>
  5.         <meta name="keywords" content="ecommerce, electronic commerce, web design, software engineering"> 
  6.         <meta name="Author" content="EKtron, Inc.">
  7.     </head>
  8.     <% 
  9.     myDSN="DSN=editor"
  10.     mySQL="select Edit_html from WYSIWYG where edit_id=2"
  11.     set conntemp=server.createobject("adodb.connection")
  12.     conntemp.open myDSN
  13.     set rstemp=conntemp.execute(mySQL)
  14.     if  rstemp.eof then
  15.        response.write "no data for<br>"
  16.        response.write mySQL
  17.        conntemp.close
  18.        set conntemp=nothing
  19.        response.end      
  20.     end if
  21.     %>
  22.     <body bgcolor="white">
  23.         <table width="625" cellpadding="0" cellspacing="0" border="0">
  24.             <tr>
  25.                 <td width="113" height="35" valign="TOP" bgcolor="#639C63"><a href="http://www.ektron.com"><img src="EKlogo.gif" width=113 height=35 alt="" border=0></a></td>
  26.                 <td width="505" align="CENTER" valign="BOTTOM" bgcolor="#639C63"></td>
  27.             </tr>
  28.             <tr>
  29.                 <td align="CENTER" valign="TOP" bgcolor="#639C63"><img src="http://www.ektron.com/images/space.gif" width=1 height=300 alt="" border="0"></td>
  30.                 <td align="center" valign="top">
  31.                     <table width="90%" cellspacing="2" cellpadding="2">
  32.                     <tr>
  33.                         <td><% response.write rstemp.Fields("Edit_html") %></td>
  34.                     </tr>
  35.                     </table>
  36.                 </td>
  37.             </tr>
  38.             <tr>
  39.                 <td bgcolor="#639C63" align="center" valign="middle"></td>
  40.                 <td height="25" align="center"><a href="javascript:history.back();"><font size="2" face="verdana, arial, helvetica">Back</font></a></td>
  41.             </tr>
  42.         </table>
  43.     </body>
  44. </html>